<?php /* Smarty version 2.6.14, created on 2015-04-18 09:47:17
         compiled from push_message.add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'push_message.add.html', 12, false),array('function', 'html_options', 'push_message.add.html', 16, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>

<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table class="adminform" border="0" cellspacing="0">
    <tr>
        <th><b>新建推送消息</b></th>
    </tr>
    <tr>
        <td>
            发送时间：<input class="text" style="width:120px" type="text" name="pushTime" id="pushTime" readonly value='<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['pushTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
'/>
            <br/>
            用户组:&nbsp;&nbsp;&nbsp;<select name="groupId" >
                        <option value="0">请选择</option>
                        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['groupList'],'selected' => $this->_tpl_vars['data']['groupId']), $this);?>

                      </select>
            <br/>
            发送标题 :<input type="text" datatype="Require" style="width:520px" name="title" id="title" value="<?php echo $this->_tpl_vars['data']['title']; ?>
" class="text" msg="发送标题不能为空！"  />
            <br/>
            应用Id:&nbsp;&nbsp; <input class="text" style="width:120px" type="text" name="appId" id="appId" value="<?php echo $this->_tpl_vars['data']['appId']; ?>
">
            <br/>
            专题Id:&nbsp;&nbsp; <input class="text" style="width:120px" type="text" name="subjectId" id="subjectId" value="<?php echo $this->_tpl_vars['data']['subjectId']; ?>
">
            <br/>
            URL : &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" style="width:520px" name="url" id="url" value="<?php echo $this->_tpl_vars['data']['url']; ?>
" class="text"  />
            <br/>
            <?php if ($this->_tpl_vars['data']): ?>
            <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['data']['id']; ?>
" />
            <?php endif; ?>
        </td>
    </tr>
    <tr>
        <td><input type="submit" name="button" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" /></td>
    </tr>
</table>
</form>

<script>
    $('#pushTime').datetimepicker({dateFormat:"yy-mm-dd h:i",timeFormat:"",maxDate:"+1d"});
</script>